<template>
	<view class="announcement">
		<view class="mail_List">
			<view class="mail" style="font-weight: 700;">
				<view class="order">党员活动</view>
			</view>
		</view>
		<view class="icon">
			<u-icon name="arrow-left" color="#fefefe" size="40" @click="navigateBack"></u-icon>
		</view>
		<view>
			<uni-card class="second_card" style="margin: 0;">
				<u-cell-group :border="false" v-for="(item,index) in application" :key="index">
					<u-cell-item :title="item.theme" arrow-direction="right" :label="item.startTime"
						@click="travelling(item.id)">
						<view class="people">
							<view style="margin-left: 20rpx;">
								<image src="../../../static/workOrder/people.png" mode=""
									style="width: 20rpx; height: 20rpx;margin-right: 8rpx;"></image><text>{{item.applyNumber}}人</text>
							</view>
						</view>
					</u-cell-item>
					<!-- 					<view class="people">
						<!-- <view><image src="../../../static/workOrder/Polygon2.png" mode="" style="width: 20rpx; height: 20rpx;"></image><text>654次</text></view>
						<view style="margin-left: 20rpx;"><image src="../../../static/workOrder/Polygon2.png" mode="" style="width: 20rpx; height: 20rpx;"></image><text>{{item.applyNumber}}人</text></view>
					</view> -->
				</u-cell-group>
			</uni-card>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				// 所有展示数据
				application: '',
				// 搜索内容
				deviceName: '',
				// 搜索展示数据
				searchOwners: '',
			}
		},
		onLoad() {
			// 展示全部数据
			this.getRecords()
		},
		methods: {
			// 展示全部数据
			getRecords() {
				this.loginId = uni.getStorageSync("setModel")
				this.$http.get('informationInquiry/selectActivityList', {
					loginId: this.loginId.userId
				}).then(res => {
					console.log(res, '课程分类')
					this.application = res.data
				})
			},
			travelling(id) {
				this.openUrl(`/pagesA/application/memberActivities/travelling/travelling?id=${id}`)
			}
		}
	}
</script>

<style lang="scss" scoped>
	.announcement {
		.mail_List {
			overflow: hidden;
			width: 100%;
			background-color: #f2f2f2;

			.mail {
				height: 160rpx;
				line-height: 230rpx;
				color: #fff;
				font-size: 40rpx;
				background-color: #2a4f65;
			}

			.order {
				text-align: center;
			}
		}

		.icon {
			position: absolute;
			top: 96rpx;
			left: 20rpx;
		}

		/deep/.second_card {

			.uni-card {
				z-index: unset;
				margin: 24rpx 0;
			}

			/deep/.u-cell__value {
				margin-right: -18rpx;
			}

			u-cell-group {
				u-cell-item {
					.u-cell {
						// padding: 14rpx 24rpx!important;
						.u-cell_title {
							width: 446rpx !important;
							overflow: hidden !important;
							text-overflow: ellipsis !important;
							white-space: nowrap !important;
						}
					}

				}

			}



			.uni-card__content {
				padding: 0 10rpx !important;
			}

			.people {
				display: flex;
				position: absolute;
				top: 32rpx;
				right: 100rpx;
			}
		}

	}
</style>
